import { createRouter, createWebHashHistory } from "vue-router";
const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/login",
    },
    {
      path: "/login",
      name: "login",
      meta: {
        title: "登录",
        tdivide: true,
        bdivide: true,
        back: true,
        placeholder: false,
      },
      component: () => import("@/views/login.vue"),
    },
    {
      path: "/upload",
      name: "upload",
      meta: {
        title: "肺部ct图像识别",

        bdivide: true,
        back: true,
      },
      component: () => import("@/views/upload.vue"),
    },
    {
      path: "/mine",
      name: "mine",
      meta: {
        title: "我的",
        placeholder: false,
        tdivide: true,
      },
      component: () => import("@/views/visitor.vue"),
    },
    {
      path: "/his",
      name: "his",
      meta: {
        title: "历史记录",
        bdivide: true,
        back:true,
        placeholder: false,
      },
      component: () => import("@/views/history.vue"),
    },

    {
      path: "/home",
      name: "home",
      meta: {
        title: "主页",
        tdivide: true,
        placeholder: false,
      },
      component: () => import("@/views/qr.vue"),
    },
  ],
});

export default router;
